package week6;

import com.sun.jdi.PathSearchingVirtualMachine;

import java.util.Scanner;

public class Q42 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入员工的个数");
        Q4 q4[] = new Q4[sc.nextInt()];

        for (int i = 0; i < q4.length; i++) {
            q4[i] = new Q4();
            System.out.println("请输入第" + (i + 1) + "个员工的姓名");
            q4[i].setName(sc.next());
            System.out.println("请输入第" + (i + 1) + "个员工的年龄");
            q4[i].setAge(sc.next());
            System.out.println("请输入第" + (i + 1) + "个员工的性别");
            q4[i].setGender(sc.nextInt());
            System.out.println("请输入第" + (i + 1) + "个员工的电话");
            q4[i].setPhone(sc.next());
        }
        for(int i =0;i<q4.length;i++){
            System.out.println(q4[i].toString());
        }
    }
}
